<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:ice="http://www.icesoft.com/icefaces/component"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
    <ui:composition>
        <ice:panelGrid columns="5"  style="color: black; text-align: left; margin-top: -7px" rendered="${(empty rendered)? true : rendered}">
            <ice:outputLabel value="${(empty labelEst)? 'Estado:' : labelEst}" for="${id}" style="${(required)? 'font-weight: bold' : 'font-weight: normal'}"/>
            <ice:selectOneMenu  title="${titleEst}"  converter="entidadeConverter" disabled="${disabled}" style="${(empty styleEst)? 'width : 160px' : styleEst}" id="NLsomEstado"  readonly="${(empty readonly)? (botoes.controllerPagina.formularioDesabilitado) : readonly}"
                                value="#{beanEstadoCidade.estadoSelecionado}" >
                <f:selectItems   value="#{listasTabelas.estados}"/>
            </ice:selectOneMenu>
            <ice:outputText style="${(required)? 'font-weight: bold' : 'font-weight: normal'}" value="${(empty labelCid)? 'Cidade:' : labelCid}"/>
            <ice:selectOneMenu title="${titleCid}" style="${(empty styleCid)? 'width : 200px' : styleCid}" disabled="${disabled}" value="${value}" readonly="${(empty readonly)? (botoes.controllerPagina.formularioDesabilitado) : readonly}"
                               id="${id}" converter="entidadeConverter"   requiredMessage="${label} é obrigatório." required="${(empty required)? false : required}" >
                <f:selectItems  value="#{beanEstadoCidade.cidades}" />
            </ice:selectOneMenu>
            <ice:commandButton  actionListener="#{navegaEntrePaginas.navegarPagina}" disabled="${disabled}" enabledOnUserRole="${(empty enabledOnUserRole)? 'ROLE_ADMIN, ROLE_CADGERCIDADE' : enabledOnUserRole}"  id="CadGerCidade"
                               image="/resources/btAdd.png" title="Cadastrar Cidade"/>           
        </ice:panelGrid>
    </ui:composition>
</html>
